package com.y.simple.utils;

import com.y.simple.bean.LoginUserMsg;

public class ThreadLocalUtil {

    public static final ThreadLocal<LoginUserMsg> userThreadLocal = new ThreadLocal<>();

    public static void add(LoginUserMsg msg){
        userThreadLocal.set(msg);
    }

    public static LoginUserMsg get(){
        return userThreadLocal.get();
    }

    public static void remove(){
        userThreadLocal.remove();
    }

}
